<!--
 * @Author: wangjh wangjiahui0710@163.com
 * @Date: 2024-07-10 09:19:29
 * @LastEditors: wangjh wangjiahui0710@163.com
 * @LastEditTime: 2024-07-15 10:36:18
 * @FilePath: \cip-admin\src\pages\company\information\accident\components\sheet-item.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!-- 表格内容,此组件还用于生成导出文件,所以不应该依赖vue组件相关的上下文 -->
<script lang="ts" setup>
import { RESCUE_TYPE_MAP } from "@/config/enum-map";

defineOptions({ name: "SheetItem" });
</script>

<template>
	<el-table-column label="序号" type="index" width="60" fixed="left" />
	<el-table-column v-slot="{ row }"  label="事故类型" prop="type"
		><el-text>
			{{ RESCUE_TYPE_MAP[row.type] }}
		</el-text></el-table-column
	>
	<el-table-column label="事故发生时间" prop="happenTime" />
	<el-table-column label="事故地点" prop="address" />
	<el-table-column label="事故描述" prop="description" />
	<el-table-column label="受伤人数" prop="injuryNum" />
	<el-table-column label="死亡人数" prop="deadNum" />
	<el-table-column label="损失金额(万元)" prop="lossAmount" />
	<el-table-column label="改进措施" prop="rescueDesc" />
</template>
